Jump to content

Wikipedia talk:WikiProject International relations/Bilateral relations task force/Articles

Page contents not supported in other languages.
From Wikipedia, the free encyclopedia

Word advanced find and replace with wildcards

[edit]

Find:

2009^p*
^13    * (*) relations^13(*)2009
2009^13    * (*) relations^13(*)2009

Replace:

2009^p* [[
^p*[[\1 relations]]^p
^p*\1 relations^p

add section headers using Find and replace with wildcards

[edit]

Find:

\*\[\[Foreign relations of (*)\]\]^13

Replace:

==\1==^p*[[Foreign relations of \1]]^p

Ikip (talk) 16:50, 14 May 2009 (UTC)[reply]

changing flag/embassies into table

[edit]

Word find and replace.

Original:

*{{Flag|Greece}}** [[Athens]] (embassy)** [[Ioannina]] (Consulate General)** [[Thessaloniki]] (Consulate General)

Find:

\*\{\{Flag\|(*)\}\}(*)^13

Replace:

|-----------valign=top ^p|<!--flag--> {{Flag|\1}}^p|<!-- continent --> ^p|<!-- date of relations -->^p|<!-- embassy Albania--> \2^p|<!-- embassy country --> ^p|<!--Memberships--> ^p|<!--notes--> ^p

Final:

|-----------valign=top 
|<!--flag--> {{Flag|Netherlands}}
|<!-- continent --> 
|<!-- date of relations -->
|<!-- embassy Albania--> ** [[The Hague]] (embassy)
|<!-- embassy country --> 
|<!--Memberships--> 
|<!--notes--> 

Ikip (talk) 16:24, 17 May 2009 (UTC)[reply]

[edit]

Original:

*[[Angola_–_Cape_Verde_relations]]

Find:

\*\[\[(*)\]\]

Replace:

*[http://en.wikipedia.org/w/index.php?title=\1&action=edit \1]

New:

*[http://en.wikipedia.org/w/index.php?title=Angola_–_Cape_Verde_relations&action=edit Angola_–_Cape_Verde_relations]

Ikip (talk) 00:47, 16 May 2009 (UTC)[reply]