Template:Pre/doc

From Interstellar War Wiki
Jump to navigationJump to search

{{#ifeq: doc | doc

 | 	

{{

   #ifeq: show | show	
   | {{#invoke:Message box|mbox}}	
   }}{{
   #if: 
   | 
   | {{#ifexist:Template:Pre|[[Category:{{	
     #switch: Template	
     | Template  = Template
     | Module    = Module
     | User      = User	
     | #default  = Wikidata
   }} documentation pages]]|}}	
 }}	

| }}

This template is a light version of the <pre> tag. Using this will wrap text in the same style as the <pre> tag, but will not create a new line.

Example

With <pre>

this is some

text

With {{{{#if:|subst:}}{{#ifeq:P|:|:Pre|{{#switch:||Template=Pre|File|Category=Pre|#default=Pre}}}}{{#ifeq:x|{{{2}}}||{{{2}}}}}{{#ifeq:x|{{{3}}}||{{{3}}}}}{{#ifeq:x|{{{4}}}||{{{4}}}}}{{#ifeq:x|{{{5}}}||{{{5}}}}}{{#ifeq:x|{{{6}}}||{{{6}}}}}{{#ifeq:x|{{{7}}}||{{{7}}}}}{{#ifeq:x|{{{8}}}||{{{8}}}}}{{#ifeq:x|{{{9}}}||{{{9}}}}}{{#ifeq:x|{{{10}}}||{{{10}}}}}}}

this is some {{#ifeq:code|code|text|code}}