Difference between revisions of "Template:NamespaceName"

From OOModels
Jump to navigationJump to search
(New page: {{#ifeq:{{NAMESPACE}}|Artefact|{{#titleparts:{{#ifeq:{{{IsPackage}}}|true|{{PAGENAME}}|{{BASEPAGENAME}}}}|0|2}}|{{#ifeq:{{{IsPackage}}}|true|{{PAGENAME}}|{{BASEPAGENAME}}}}}})
 
 
(12 intermediate revisions by the same user not shown)
Line 1: Line 1:
{{#ifeq:{{NAMESPACE}}|Artefact|{{#titleparts:{{#ifeq:{{{IsPackage}}}|true|{{PAGENAME}}|{{BASEPAGENAME}}}}|0|2}}|{{#ifeq:{{{IsPackage}}}|true|{{PAGENAME}}|{{BASEPAGENAME}}}}}}
<includeonly>{{#if:
  {{#ifeq:{{NAMESPACE}}|Artefact|true|}}
  {{#ifeq:{{NAMESPACE}}|Software|true|}}
  {{#ifeq:{{NAMESPACE}}|Product|true|}}
    |{{#titleparts:
        {{#ifeq:{{{IsPackage}}}|true
            |{{PAGENAME}}
            |{{#ifeq:{{{IsVersion}}}|true
              |{{#titleparts:{{BASEPAGENAME}}|-1|}}
              |{{BASEPAGENAME}}
            }}
        }}
        |0|2
      }}
    |{{#ifeq:{{{IsPackage}}}|true
        |{{PAGENAME}}
        |{{#ifeq:{{{IsVersion}}}|true
            |{{#titleparts:{{BASEPAGENAME}}|-1|}}
            |{{BASEPAGENAME}}
        }}
      }}
}}</includeonly><noinclude>
This template determines the (reverse domain) namespace name from the current page name
</noinclude>

Latest revision as of 13:46, 17 July 2008

This template determines the (reverse domain) namespace name from the current page name