Difference between revisions of "Template:Pp-meta"

From Game Detectives Wiki
Jump to: navigation, search
[unchecked revision][unchecked revision]
(All worked in last version. Adding a "demospace" function.)
(Last one worked well. Testing smalltext again. Have an idea...)
Line 1: Line 1:
{{#switch:{{{demospace|X{{NAMESPACE}}}}}
+
{{#if:{{{smalltext|}}}
   | Main
+
   | {{{smalltext}}}
  | X = <!--Main (article) space-->
 
    <table class="ambox ambox-protection">
 
    <tr>
 
    <td class="ambox-image">{{{image}}}
 
    <td>{{{text}}}
 
    </table>
 
  
   | Talk
+
   | <!--No smalltext-->
  | XTalk
+
    {{#switch:{{{demospace|X{{NAMESPACE}}}}}
  | XUser talk
+
    | Main
  | XImage talk
+
    | X = <!--Main (article) space-->
  | XTemplate talk
+
      <table class="ambox ambox-protection">
  | xHelp talk
+
      <tr>
  | XCategory talk = <!--Any talk space-->
+
      <td class="ambox-image">{{{image}}}
    <table class="messagebox standard-talk">
+
      <td>{{{text}}}
    <tr>
+
      </table>
    <td>{{{image}}}
 
    <td>{{{text}}}
 
    </table>
 
  
  | #default = <!--Other space-->
+
    | Talk
    <table class="messagebox protected" style="border:2px solid #99B; padding:0px; font-size:0.9em;">
+
    | XTalk
    <tr>
+
    | XUser talk
    <td>{{{image}}}
+
    | XImage talk
    <td>{{{text}}}
+
    | XTemplate talk
    </table>
+
    | xHelp talk
 +
    | XCategory talk = <!--Any talk space-->
 +
      <table class="messagebox standard-talk">
 +
      <tr>
 +
      <td>{{{image}}}
 +
      <td>{{{text}}}
 +
      </table>
  
}}<noinclude>
+
    | #default = <!--Other space-->
 +
      <table class="messagebox protected" style="border:2px solid #99B; padding:0px; font-size:0.9em;">
 +
      <tr>
 +
      <td>{{{image}}}
 +
      <td>{{{text}}}
 +
      </table>
 +
 
 +
  }}<!--End switch-->
 +
}}<!--End if smalltext--><noinclude>
  
 
{{template doc}}
 
{{template doc}}
 
<!-- Add categories and inter-wikis to the /doc subpage, not here! -->
 
<!-- Add categories and inter-wikis to the /doc subpage, not here! -->
 
</noinclude>
 
</noinclude>

Revision as of 18:39, 21 September 2007

{{{image}}} {{{text}}}

Template:Template doc