Difference between revisions of "Help:Using templates"

From Conservapedia
Jump to navigation Jump to search
(Move mainpageright down a bit)
(→‎What do you pass to parameters?: Notes section; formatting)
Line 50: Line 50:
 
In some cases, however, specific text must be supplied.  The {{tl|Bible ref}} template, for example, expects a book of the Bible for the "book" parameter, and giving it something that is not a book of the Bible will break the link to BibleGateway that the template creates.
 
In some cases, however, specific text must be supplied.  The {{tl|Bible ref}} template, for example, expects a book of the Bible for the "book" parameter, and giving it something that is not a book of the Bible will break the link to BibleGateway that the template creates.
  
−
In many cases you can supply a blank value to the parameter.  You can set a parameter to be blank by typing nothing after the pipe character for an unnamed parameter, or nothing after the equals sign for a named parameter.  For example, if you wanted the welcome template to not show "Joker" or "from Batman", you could type <tt><small><nowiki>{{welcome||sig=}}</nowiki></small></tt>
+
In many cases you can supply a blank value to the parameter.  You can set a parameter to be blank by typing nothing after the pipe character for an unnamed parameter, or nothing after the equals sign for a named parameter.  For example, if you wanted the welcome template to not show "Joker" or "from Batman", you could type {{tt|<nowiki>{{welcome||sig=}}</nowiki>}}.
  
 
However, a well-written template will allow you to simply omit the parameter altogether, as the {{tl|welcome}} template does with the ''sig'' parameter.
 
However, a well-written template will allow you to simply omit the parameter altogether, as the {{tl|welcome}} template does with the ''sig'' parameter.
 +
 +
== Notes ==
 +
{{reflist}}

Revision as of 11:17, February 24, 2008

Using templates can be easy or hard, depending on the template. But normally they are easy.

Before you can attach your own template to any CP page, you will need to submit it for approval at Template Submission.

Basic instructions

Iran War: The narrative war continues to confuse and confuddle. [1]


"Migrant Caravan Headed North Is Anticipating Democrat Win in Midterms." [2] France descending into chaos. [3]


"IBM's Quantum Computer Completes in 19 Seconds What Could Take a Supercomputer a Century." [4]


Ukrainska Pravda: Enough for two more years of war: Russia's economy just won't slip into recession. [5]


"Most data centers refusing to say how much water, electricity they use." [6]


Lame "Fox News hires disgraced Cuomo aide who covered up COVID nursing-home deaths." [7]


Relief from transgender activism: "Education Department formally rescinds Title IX protections for LGBTQ students." [8]


The American Conservative: If Trump had been more like Massie, he might be winning the Midterms. [9]


Last of American forces withdraw from Iraq after 23-year occupation. [10][11]


Conflicts Forum: Situation escalates across all fronts — Russia, Iran, Saudi Arabia/Yemen. [12]


William Schryver: Panic fever. [13] As 2026 ebbs, Europe is running a panic fever in the realization the US intends to leave them to their own devices against the Russians — and, worst of all, against each other.


British authorities mess up another scare mongering scheme. [14] 'Terror' suspects released on bail. [15]


GOP collapse in polling extends even to South Carolina: Dem pulls into a tie with Lindsey Graham's sister for his seat. [16]


The Gen Z stare: many are noticing it. [17] Over-vaccination could be a factor but the liberal media won't mention that.


Massive German protests against globalist efforts to rekindle German-Russian hatreds and war. [18][19]


Liberal logic: "Socialist Spanish PM Tells U.N. That Inequality and Misinformation to Blame for Ceuta Migrant Invasion." [20]


Dem challenger to Gov. Greg Abbott (R-TX) runs a new ad featuring a J6, pro-Trump protester, and some say this race is close. [21]


Putin wins landslide, [22] Trump faces bloodbath. [23]


West humiliated: Only 50 of 193 UN states back Ukraine, with the US & BRICS countries sitting out. [24] 'Some of you will have to die' - war psychosis reaches fever pitch in UK. [25][26] Finnish President Stubb tried to talk some sense into his hysterical NATO counterparts. [27]


More evidence the public doubts longterm solvency by the feds: 19-year high in interest rates required by investors in 10-year Treasury bonds. [28]


GOP slides further for 2026 midterm elections: downgrade to a toss-up for Byron Donalds for governor of Florida. [29]


The American Conservative: Republicans try to oppose the war without opposing the war. [30]


WaPo: More US troops have died amid Iran war than Pentagon has disclosed publicly; [31] GOP Senators run for the exits. [32] Trump talks smack at UN. [33][34][35]


Conflicts Forum: Ukraine proxy war enters dangerous new phase. [36]


"A diesel-powered panic for GOP in Iowa": farming depends heavily on trucking, and "it costs more than $500 to fill up a small commercial truck." [37] Louisiana declares State of Emergency. [38]


NYT: Mark Carney prepared military combat operations against USA, plans closer ties to China, wants alternate global reserve currency like stablecoin to replace US dollar. [39]


Reuters: Russia strategic diesel supplies full, excess production now flowing to 'Stans' Central Asia – The Rule of 96. [40][41][42] The US diesel shortage is caused by the war in Iran, not Ukraine.


Congratulations to pro-life conservatives in Germany: their AfD Party rises in power to counter the growing Leftism there [43] similar to what is happening in the U.S.


The People Have Spoken: Putin's party wins big, [44] Merz's CDU loses big in Germany. [45] Neither the German people nor the Russian people want war with each other again, despite the machinations of elites & globalists.


Zelensky ex-press secretary: 'Zelensky is destroying Ukraine'. [46] Elections would be political suicide for Zelensky, [47] Zelensky humiliates Trump with continued attacks on refineries. [48]


US puppet convicted of war crimes. [49]


Alastair Crooke: A World Turned Upside Down. [50]


World's greatest athlete - Kylian Mbappe - is strongly opposed to gambling and takes greater control of his brand by moving from Nike to a Swiss apparel company. In contrast with NFL, MLB, and NBA players, Mbappe objects to use of his image to promote gambling. [51]


While canceling Ukraine elections, Zelensky attempts to disrupt Russian democratic elections. [52]


Yemenis criticize Saudi association with Jeffrey Epstein. [53] Saudis gave Epstein artifacts from the Kaaba for his 'mosque' on Epstein Island, Justice Dept confirms. [54]


Canada’s Carney panders to Europe "to Troll Trump." [55]


Poland’s ruling liberals plotting major escalation against Russia. [56] Fico warns: 'The West wants to provoke NATO-Russia war' - Lavrov warns of devastating response. [57][58] Donald Tusk: Ukraine losing 27,000 men per month. [59]


"Lake Powell Drops to Record-Low Levels" as cannabis grows and data centers soak up vast amount of water. [60]


"Former Transgender Atheist Says One Bible Verse Helped Lead Her Back to Jesus." [61]


N.C. Dem 'running to restore human decency' endorses genocide of Trump voters. [62]


The demonic NFL just stripped the outspokenly pro-life critic of LGBTQ+, twice-Super Bowl-winning (as a player, later as head coach) Tony Dungy of his vote in Hall of Fame selections. [63] In March the liberal media ended his job too. Unplug the NFL.


Quebec's hostility to conservatives: "Conservative forced out as candidate because he’s not pro-abortion, pro-LGBT." [64]


The American Conservative: Given the chance, Ukrainians would give Zelensky the boot. [65] The wartime leader’s favorability ratings have plummeted. Too bad Ukraine is no longer a democracy.


Censorship Update: Trump bans CNN, MSNOW & Politico from White House press pool. [66] Pro-gay & pro neocon globalist FOX News untouched. Zelensky ex-press secretary barred from speaking to EU Parliament.


To avoid the impeachment of War Secretary Pete Hegseth, the House abruptly adjourns until after the 2026 midterm elections. [67][68] Why isn't Hegseth fired before the midterms instead? [69][70]


Responsible Statecraft: Will 'America First' survive Trump's war-first presidency? [71]


Conservative UK Spectator: Zelensky’s strategy is national suicide. [72] Zelensky is interfering in the 2026 Midterms by striking Russian diesel refineries, trying to topple Trump. [73]


Reuters: Trump strikes deal with Houthis, tosses Saudi Arabia overboard. [74] Funny, the US went to war with Iran for regime change, and now it looks like the Saudi monarchy, Iran's traditional enemy, might not survive. [75][76]


Fed raises interest rates 1/4 pt. [77]


Fourth Chief Prosecutor in a row flees Ukraine to escape corruption charges. [78] Zelensky ex-press secretary flees to US for protection from the corrupt and murderous regime. [79]


Limit foreigners to 20% of college sports rosters: Republican Sen. Jon Husted, in a tight reelection race in Ohio, introduces sensible legislation for Americans. [80]


"These are not the people I interviewed to serve on the United States Supreme Court", Trump observes about his appointees to SCOTUS after they all rule against new postal regulations for mail-in voting, while Justices Alito and Thomas side with the Postal Service and Trump. [81]


"Trojan Horse": JD Vance sees through the demands by AI oligarchs for federal regulation of themselves [82] which would just give more power to the bankrupt Deep State in D.C.


US provides both the missiles & intelligence for long-range deep strikes on Russian diesel refineries. [83]


Diesel rises to historic record high of $6 per gal and everything will cost more. [84] Trump tells Ukrainian dictator Volodymyr Zelensky to stop striking Russian energy infrastructure. [85][86][87] Neocon warmongering rag WSJ: Trump Lectures Ukraine, not Russia. [88] Of course, the propaganda rag still attributes the actions of Ukraine to Russia.


See also Previous Conservapedia Breaking News.

A template is simply a page (usually a very brief one) that is inserted into another page.

For example, the two separate boxes on the Main Page ("Mainpageleft" and "Mainpageright") are each actually separate pages that are "included" on the Main Page. In fact, they can be included on any page: The "Mainpageright" page has been included to the right just to demonstrate that point[1]:

Templates are included on a page by typing the page name in double curly brackets. So to include this page on another page, you could type {{help:Using templates}}. If, however, the template is in "template" namespace (i.e. the page name starts with "template:"), then you don't need to include that bit. So to include the "Mainpageright" page, you would just type {{Mainpageright}}.

For simple templates, that's all there is to it.

Parameters

However, many templates allow you to add to the information in the template, or to change it's appearance, by supplying parameters.

For example, the Welcome template that someone might have put on your user talk page has two parameters. One is the name of the user, and the other is the name of the person placing the welcome message. See the example below welcoming The Joker, placed by Batman:

Welcome!

Hello, Joker, and welcome to Conservapedia!

We're glad you are here to edit. We ask that you read our Editor's Guide before you edit.

At the right are some useful links for you. You can include these links on your user page by putting "{{Useful links}}" on the page. Any questions--ask!

Thanks for reading, Joker!


from Batman

(This was included on this page by typing {{welcome|Joker|sig=from Batman}}.[1])

"Pipe" characters (|) separate each parameter.

Parameters can be optional or required, and they can be named or not named. In the example above, the first parameter ("Joker") was not named, but the second ("from Batman") was named sig. Two points need to be kept in mind with parameters:

  • Named parameters can be supplied in any order.
  • Un-named parameters must be supplied in the correct order.

Each template has (or will have) a list of parameters, looking something like this (this one is from the {{welcome}} template):

Template Parameters
(See using templates).
Name Purpose Required? Comment
1 The user name no (see note) Defaults to the page name
sig The signature of the editor posting the welcome ("~~~~" will do) no

This tells us the following:

  • Neither parameter is required.
  • The first parameter (shown as "1") is not named (hence the number, the order in which it must be supplied).
  • The second parameter is named ("sig").
  • If the first parameter is not supplied, then the page name is used instead.

You can assume that if no default is shown for a parameter that is not required, the result will be blank (i.e. in this case, the welcome message would not show who it was from).

You will notice that named parameters have the parameter name followed by an equals sign (=) followed by whatever you want that to be.

Parameters shown with numbers are the un-named parameters. You can treat them as named parameters, by typing 1=your text, but this is not necessary, except in the case that you want your text to include an equals sign (=).

What do you pass to parameters?

Obviously, you give a parameter the text that it expects, such as "from Batman" in the example above. But in most cases, you can give a parameter any text that you like. You could, for example, put "But break any laws and I'll bring the full weight of the law down on you, (signed) Batman"!

In some cases, however, specific text must be supplied. The {{Bible ref}} template, for example, expects a book of the Bible for the "book" parameter, and giving it something that is not a book of the Bible will break the link to BibleGateway that the template creates.

In many cases you can supply a blank value to the parameter. You can set a parameter to be blank by typing nothing after the pipe character for an unnamed parameter, or nothing after the equals sign for a named parameter. For example, if you wanted the welcome template to not show "Joker" or "from Batman", you could type {{welcome||sig=}}.

However, a well-written template will allow you to simply omit the parameter altogether, as the {{welcome}} template does with the sig parameter.

Notes

  1. ↑ 1.0 1.1 The "Mainpageright" and "welcome" templates on this page have been reduced in size to fit better.