Difference between revisions of "Template:Pp-meta"

From Game Detectives Wiki
Jump to: navigation, search
[unchecked revision][unchecked revision]
(missing td class)
(update per editprotected)
Line 6: Line 6:
 
| <!--No smalltext-->
 
| <!--No smalltext-->
 
   {{#switch:
 
   {{#switch:
     {{lc:{{#if:{{{demospace|}}}
+
     {{lc:       <!--Lower case the result-->
    | {{{demospace}}}
+
      <!--If no or empty "demospace" parameter then detect namespace-->
    | X{{NAMESPACE}}
+
      {{#if:{{{demospace|}}}  
    }}}}
+
      | {{{demospace}}}
  | main
+
      | {{#ifeq:x{{NAMESPACE}}|x
   | x = <!--Main (article) space-->
+
        | main
 +
        | {{#ifeq:{{NAMESPACE}}|{{TALKSPACE}}
 +
          | talk
 +
          | other
 +
          }}
 +
        }}
 +
      }}
 +
    }}
 +
   | main =       <!--"demospace=main" or main (article) space-->
 
     <table class="ambox ambox-protection metadata plainlinks">
 
     <table class="ambox ambox-protection metadata plainlinks">
 
     <tr>
 
     <tr>
Line 18: Line 26:
 
     </table>
 
     </table>
  
   | talk
+
   | talk =       <!--"demospace=talk" or any talk space-->
  | xtalk
 
  | xuser talk
 
  | ximage talk
 
  | xtemplate talk
 
  | xhelp talk
 
  | xcategory talk = <!--Any talk space-->
 
 
     <table class="messagebox standard-talk metadata plainlinks">
 
     <table class="messagebox standard-talk metadata plainlinks">
 
     <tr>
 
     <tr>
Line 31: Line 33:
 
     </table>
 
     </table>
  
   | #default = <!--Other space-->
+
  | other
 +
   | #default =   <!--"demospace=other" or other space-->
 
     <table class="messagebox protected metadata plainlinks" style="border:2px solid #99B; padding:0px; font-size:0.9em;">
 
     <table class="messagebox protected metadata plainlinks" style="border:2px solid #99B; padding:0px; font-size:0.9em;">
 
     <tr>
 
     <tr>
Line 40: Line 43:
 
   }}<!--End switch-->
 
   }}<!--End switch-->
 
}}<!--End if smalltext--><includeonly>{{#ifeq:{{{categories|no}}}|no||{{{categories|}}}}}</includeonly><noinclude>
 
}}<!--End if smalltext--><includeonly>{{#ifeq:{{{categories|no}}}|no||{{{categories|}}}}}</includeonly><noinclude>
{{pp-template|small=yes}}
+
 
{{template doc}}
+
{{documentation}}
<!-- Add categories and inter-wikis to the /doc subpage, not here! -->
+
<!-- Add categories and interwikis to the /doc subpage, not here! -->
 
</noinclude>
 
</noinclude>

Revision as of 22:58, 22 March 2008

<templatestyles src="Module:Documentation/styles.css"></templatestyles>
Template documentation[create] [purge]