Difference between revisions of "Template:Pagedata"

From Dungeons and Dragons Wiki
Jump to: navigation, search
m (should be fixed now)
 
(5 intermediate revisions by 2 users not shown)
Line 1: Line 1:
<onlyinclude>
+
<includeonly>[[Title::{{#sub:{{SUBPAGENAME}}  
{{#set: Title={{#sub:{{PAGENAME}}  
+
   |0
   |{{#if: {{#pos:{{PAGENAME}}|:}}
+
   |{{#if: {{#pos:{{SUBPAGENAME}}|(}}
    |{{#expr: {{#pos:{{PAGENAME}}|:}} + 1}}
+
     |{{#expr: {{#pos:{{SUBPAGENAME}}|(}} - 1 - {{#if: {{#pos:{{SUBPAGENAME}}|:}}
    |0  
+
       |{{#pos:{{SUBPAGENAME}}|:}} - 1  
  }}
 
   |{{#if: {{#pos:{{PAGENAME}}|(}}
 
     |{{#expr: {{#pos:{{PAGENAME}}|(}} - 1 - {{#if: {{#pos:{{PAGENAME}}|:}}
 
       |{{#pos:{{PAGENAME}}|:}} - 1  
 
 
       |0  
 
       |0  
 
       }}  
 
       }}  
Line 13: Line 9:
 
     |0  
 
     |0  
 
   }}
 
   }}
}} }}
+
}}| ]]{{#if: {{#pos:{{SUBPAGENAME}}|(}}
 
+
   |[[Identifier::{{#sub:{{SUBPAGENAME}}  
{{#if: {{#pos:{{PAGENAME}}|(}}
+
     |{{#expr: {{#pos:{{SUBPAGENAME}}|(}} + 1}}  
   |{{#set: Identifier={{#sub:{{PAGENAME}}  
+
     |{{#expr: {{#pos:{{SUBPAGENAME}}|)}} - 1 - {{#pos:{{SUBPAGENAME}}|(}} }}
     |{{#expr: {{#pos:{{PAGENAME}}|(}} + 1}}  
+
   }}| ]]
     |{{#expr: {{#pos:{{PAGENAME}}|)}} - 1 - {{#pos:{{PAGENAME}}|(}} }}
+
}}</includeonly><noinclude>{{documentation}}</noinclude>
   }} }}
 
}}
 
</onlyinclude>
 

Latest revision as of 20:55, 10 February 2012

Template documentation (for the above template, sometimes hidden or invisible)

This template sets the Title parameter for a page (everything after the namespace and before the first "(") and the identifier for a page (stuff in the parentheses). There are no parameters for this template.


Visit Template:Pagedata/doc to edit this text! (How does this work?)