User talk:John

From Fancyclopedia 3
Revision as of 06:13, 28 April 2020 by John (talk | contribs)
Jump to navigation Jump to search

#!/bin/bash
grep -v '<big>' convention_timeline.txt | grep -v 'tab>' | grep -v "' '" > convention_timeline1.txt
sed -Ef convert.sed convention_timeline1.txt > convention_timeline2.txt

cat convert.bsh >> convention_timeline3.txt
cat convert.sed >> convention_timeline3.txt
echo >> convention_timeline3.txt
echo See https://meta.wikimedia.org/wiki/Help:Sorting >> convention_timeline3.txt
echo >> convention_timeline3.txt
echo To sort for Dates within Location, click on Location, then shift-click on Date >> convention_timeline3.txt
echo >> convention_timeline3.txt

echo '{| class="wikitable sortable"' >> convention_timeline3.txt
echo '! Date' >> convention_timeline3.txt
echo '! Name' >> convention_timeline3.txt
echo '! Location' >> convention_timeline3.txt
cat convention_timeline2.txt >> convention_timeline3.txt
echo '|}' >> convention_timeline3.txt
s` ``g
s`<small>\((.*)\)</small>`||\1`g
s`(.*)\|\|(.*)\|\|(.*)`|-\n|data-sort-value=\1|\1\n|\2\n|data-sort-value=\3|[[\3]]`
s`(.*)\|\|(.*)`|-\n|data-sort-value=\1|\1\n|\2`

See https://meta.wikimedia.org/wiki/Help:Sorting

To sort for Dates within Location, click on Location, then shift-click on Date

Date Name Location
October 22, 1936 First Convention Philadelphia, PA
January 3, 1937 Other First Convention Leeds, UK