<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://compusofia.com/w/index.php?action=history&amp;feed=atom&amp;title=Template%3AXpsoc%2Fdoc</id>
	<title>Template:Xpsoc/doc - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://compusofia.com/w/index.php?action=history&amp;feed=atom&amp;title=Template%3AXpsoc%2Fdoc"/>
	<link rel="alternate" type="text/html" href="https://compusofia.com/w/index.php?title=Template:Xpsoc/doc&amp;action=history"/>
	<updated>2026-04-23T10:45:38Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.45.3</generator>
	<entry>
		<id>https://compusofia.com/w/index.php?title=Template:Xpsoc/doc&amp;diff=7234&amp;oldid=prev</id>
		<title>Majestix: Created page with &quot;{{Documentation subpage}} {{lua|Module:Xpsoc}} This is a simplified expansion demo template.  Purposes of the simplification are: *reducing the number of required expansion demo templates, by reducing the number of distinguished patterns, and/or making a single template support multiple patterns *simplifying the calls of these templates; for example, if a parameter of the demonstrated template is represented by a single parameter of the...&quot;</title>
		<link rel="alternate" type="text/html" href="https://compusofia.com/w/index.php?title=Template:Xpsoc/doc&amp;diff=7234&amp;oldid=prev"/>
		<updated>2026-04-17T06:11:25Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;quot;{{Documentation subpage}} {{lua|Module:Xpsoc}} This is a simplified &lt;a href=&quot;/w/index.php?title=Help:Expansion_demo_templates&amp;amp;action=edit&amp;amp;redlink=1&quot; class=&quot;new&quot; title=&quot;Help:Expansion demo templates (page does not exist)&quot;&gt;expansion demo template&lt;/a&gt;.  Purposes of the simplification are: *reducing the number of required expansion demo templates, by reducing the number of distinguished patterns, and/or making a single template support multiple patterns *simplifying the calls of these templates; for example, if a parameter of the demonstrated template is represented by a single parameter of the...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;{{Documentation subpage}}&lt;br /&gt;
{{lua|Module:Xpsoc}}&lt;br /&gt;
This is a simplified [[Help:Expansion demo templates|expansion demo template]].&lt;br /&gt;
&lt;br /&gt;
Purposes of the simplification are:&lt;br /&gt;
*reducing the number of required expansion demo templates, by reducing the number of distinguished patterns, and/or making a single template support multiple patterns&lt;br /&gt;
*simplifying the calls of these templates; for example, if a parameter of the demonstrated template is represented by a single parameter of the expansion demo template, this reduces the number of pipe characters in the call, and makes the call of the expansion demo template more resemble the call of the demonstrated template&lt;br /&gt;
&lt;br /&gt;
Limitations:&lt;br /&gt;
*empty and undefined parameters are treated the same&lt;br /&gt;
*a newline in the wikitext is displayed as a space, so it is not possible to properly demonstrate the special effects of the characters &amp;lt;code&amp;gt;*#:;&amp;lt;/code&amp;gt; after a newline, and table syntax, and a double newline&lt;br /&gt;
*trimming of values of named parameters is not demonstrated, the values are shown trimmed in the displayed wikitext; the same for parameter names&lt;br /&gt;
&lt;br /&gt;
Thus we get the wrong:&lt;br /&gt;
&lt;br /&gt;
{{xpsoc|d=&amp;quot;|2x|&lt;br /&gt;
*a}}&lt;br /&gt;
&lt;br /&gt;
Compare the correct:&lt;br /&gt;
&lt;br /&gt;
{{xpdop3c|2x| *a}}&lt;br /&gt;
&lt;br /&gt;
{{xpdop3c|2x|&lt;br /&gt;
*a}}&lt;br /&gt;
&lt;br /&gt;
Also we get the wrong:&lt;br /&gt;
&lt;br /&gt;
{{xpsoc|d=&amp;quot;|2x}}&lt;br /&gt;
&lt;br /&gt;
Compare the correct:&lt;br /&gt;
&lt;br /&gt;
{{xpdoc|2x}}&lt;br /&gt;
&lt;br /&gt;
A newline is displayed as a space, while the result takes into account the newline:&lt;br /&gt;
&amp;lt;nowiki&amp;gt;{{xpsoc|1x|a|&amp;lt;/nowiki&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
b&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
c}}&lt;br /&gt;
&lt;br /&gt;
gives:&lt;br /&gt;
&lt;br /&gt;
{{xpsoc|1x|a&lt;br /&gt;
b&lt;br /&gt;
&lt;br /&gt;
c}} (wrong)&lt;br /&gt;
&lt;br /&gt;
Compare the correct:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;nowiki&amp;gt;{{xpdop3c|1x|a|&amp;lt;/nowiki&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
|b|&amp;lt;br&amp;gt;&lt;br /&gt;
|&amp;lt;br&amp;gt;&lt;br /&gt;
|c}}&lt;br /&gt;
&lt;br /&gt;
gives:&lt;br /&gt;
&lt;br /&gt;
{{xpdop3c|1x|a|&lt;br /&gt;
|b|&lt;br /&gt;
|&lt;br /&gt;
|c}}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
This template works for the patterns &amp;quot;oc&amp;quot;, for which the more advanced versions are the following ones:&lt;br /&gt;
&lt;br /&gt;
{|class=&amp;quot;wikitable sortable&amp;quot;&lt;br /&gt;
!pattern!!template!!1!!2!!3!!4!!5!!6!!7!!8!!9!!10!!11!!12!!13!!14!!15!!16!!17!!18!!19!!20!!21!!22!!23!!24&lt;br /&gt;
{{expansion demo pattern|p=oc|&amp;quot;|{|{|1|}|}|2|3|4|5|6|7|8|9|10|11|12|13|14|15|16|&amp;quot;| |}}&lt;br /&gt;
{{expansion demo pattern|p=5oc|&amp;quot;|1|2|3|4|5|{|{|6|}|}|7|8|9|10|11|12|13|14|15|16|&amp;quot;| |}}&lt;br /&gt;
{{expansion demo pattern|p=10oc|&amp;quot;|1|2|3|4|5|6|7|8|9|10|{|{|11|}|}|12|13|14|15|16|&amp;quot;| |}}&lt;br /&gt;
{{expansion demo pattern|p=5o5c|&amp;quot;|1|2|3|4|5|{|{|6|7|8|9|10|}|}|11|12|13|14|15|16|&amp;quot;| |}}&lt;br /&gt;
{{expansion demo pattern|p=opec|&amp;quot;|{|{|1| &amp;amp;#124; |2|{{=}}|3|}|}|4|5|6|7|8|9|10|11|12|13|14|&amp;quot;|}} |&lt;br /&gt;
{{expansion demo pattern|p=5opec|&amp;quot;|1|2|3|4|5|{|{|6| &amp;amp;#124; |7|{{=}}|8|}|}|9|10|11|12|13|14|&amp;quot;| |}}&lt;br /&gt;
{{expansion demo pattern|p=op3c|&amp;quot;|{|{|1| &amp;amp;#124; |2|3|4|}|}|5|6|7|8|9|10|11|12|13|14|15|&amp;quot;| |}}&lt;br /&gt;
{{expansion demo pattern|p=o5p5c|&amp;quot;|{|{|1|2|3|4|5| &amp;amp;#124; |6|7|8|9|10|}|}|11|12|13|14|15|16|17|&amp;quot;| |}}&lt;br /&gt;
{{expansion demo pattern|p=op3p3c|&amp;quot;|{|{|1| &amp;amp;#124; |2|3|4| &amp;amp;#124; |5|6|7|}|}|8|9|10|11|12|13|14|15|16|&amp;quot;| |}}&lt;br /&gt;
{{expansion demo pattern|p=op14c|&amp;quot;|{|{|1| &amp;amp;#124; |2|3|4|5|6|7|8|9|10|11|12|13|14|15|}|}|&amp;quot;| |}}&lt;br /&gt;
{{expansion demo pattern|p=op10pec|&amp;quot;|{|{|1| &amp;amp;#124; |2|3|4|5|6|7|8|9|10|11| &amp;amp;#124; |12|{{=}}|13|}|}|&amp;quot;| |}}&lt;br /&gt;
{{expansion demo pattern|p=5op3c|&amp;quot;|1|2|3|4|5|{|{|6| &amp;amp;#124; |7|8|9|}|}|10|11|12|13|14|15|&amp;quot;| |}}&lt;br /&gt;
{{expansion demo pattern|p=5op3p3c|&amp;quot;|1|2|3|4|5|{|{|6| &amp;amp;#124; |7|8|9| &amp;amp;#124; |10|11|12|}|}|13|14|&amp;quot;| |}}&lt;br /&gt;
{{expansion demo pattern|p=opepec|&amp;quot;|{|{|1| &amp;amp;#124; |2|{{=}}|3| &amp;amp;#124; |4|{{=}}|5|}|}|6|7|8|9|10|11|12|&amp;quot;| |}}&lt;br /&gt;
{{expansion demo pattern|p=5opepec|&amp;quot;|1|2|3|4|5|{|{|6| &amp;amp;#124; |7|{{=}}|8| &amp;amp;#124; |9|{{=}}|10|}|}|11|12|&amp;quot;| |}}&lt;br /&gt;
{{expansion demo pattern|p=op3pec|&amp;quot;|{|{|1| &amp;amp;#124; |2|3|4| &amp;amp;#124; |5|{{=}}|6|}|}|7|8|9|10|11|12|&amp;quot;| |}}&lt;br /&gt;
{{expansion demo pattern|p=5op3pec|&amp;quot;|1|2|3|4|5|{|{|6| &amp;amp;#124; |7|8|9| &amp;amp;#124; |10|{{=}}|11|}|}|13|14|&amp;quot;| |}}&lt;br /&gt;
{{expansion demo pattern|p=5op3p3p3c|&amp;quot;|1|2|3|4|5|{|{|6| &amp;amp;#124; |7|8|9| &amp;amp;#124; |10|11|12| &amp;amp;#124; |13|14|15|}|}|&amp;quot;}}&lt;br /&gt;
{{expansion demo pattern|p=5op3p3pec|&amp;quot;|1|2|3|4|5|{|{|6| &amp;amp;#124; |7|8|9| &amp;amp;#124; |10|11|12| &amp;amp;#124; |13|{{=}}|14|}|}|&amp;quot;}}&lt;br /&gt;
{{expansion demo pattern|p=opepepec|&amp;quot;|{|{|1| &amp;amp;#124; |2|{{=}}|3| &amp;amp;#124; |4|{{=}}|5| &amp;amp;#124; |6|{{=}}|7|}|}|8|9|10|11|12|&amp;quot;}}&lt;br /&gt;
{{expansion demo pattern|p=5opepepec|&amp;quot;|1|2|3|4|5|{|{|6| &amp;amp;#124; |7|{{=}}|8| &amp;amp;#124; |9|{{=}}|10| &amp;amp;#124; |11|{{=}}|12|}|}|&amp;quot;}}&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
Naming scheme:&lt;br /&gt;
*o = double opening braces&lt;br /&gt;
*c = double closing braces&lt;br /&gt;
*p = pipe character&lt;br /&gt;
*e = equals sign&lt;br /&gt;
*&amp;#039;&amp;#039;number&amp;#039;&amp;#039; = number of text parameters (at the start: instead of none; elsewhere: instead of one), to allow a space or newline as value of a separate parameter (this is required for proper processing)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;includeonly&amp;gt;&lt;br /&gt;
[[Category:Expand demo templates]]&lt;br /&gt;
&amp;lt;/includeonly&amp;gt;&lt;/div&gt;</summary>
		<author><name>Majestix</name></author>
	</entry>
</feed>